<?
include ('includes/funcionesAD.php');
include ('includes/Funciones.php');

$ServiciosHTML = new ServiciosHTML();

$conexion = mysql_connect("localhost","root","") or DIE ("no se conecto");
$base = mysql_select_db("dbaggiornodeco",$conexion);
$sql = "select idcliente,apellido,nombre,email from dbclientes";

$datos = mysql_query($sql,$conexion);

?>


<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv='refresh' content='1000' />
<meta name='title' content='Aggiorno Deco' />
<meta name='description' content='Diseño de interiores Aggiorno Deco' />
<meta name='keywords' content='Diseño de interiores' />
<meta name='distribution' content='Global' />
<meta name='language' content='es' />
<meta name='identifier-url' content='http://www.aggiornodeco.com.ar' />
<meta name='rating' content='General' />
<meta name='reply-to' content='' />
<meta name='author' content='Webmasters' />
<meta http-equiv='Pragma' content='no-cache/cache' />
<meta http-equiv='Cache-Control' content='no-cache' />
<meta name='robots' content='all' />
<meta name='revisit-after' content='7 day' />



<title>Sistema de Ventas AggiornoDeco - Agregar Cliente</title>


<script type="text/javascript" src="js/jquery-1.7.1.min.js"></script>
<script type="text/javascript" src="js/jquery.dimensions.js"></script>
<script type="text/javascript" src="js/jquery.positionBy.js"></script>
<script type="text/javascript" src="js/jquery.jdMenu.js"></script>
<link href='css/estilo1.css' rel='stylesheet' type='text/css' />


<script>

function permite(elEvento, permitidos) {
// Variables que definen los caracteres permitidos

var numeros = "0123456789.";
var numeros2 = "0123456789";
var caracteres = "abcdefghijklmnñopqrstuvwxyzABCDEFGHIJKLMNÑOPQRSTUVWXYZ /()@_-";
var numeros_caracteres = numeros + caracteres;
// Seleccionar los caracteres a partir del parámetro de la función
switch(permitidos) {
case 'num':
permitidos = numeros;
break;
case 'num2':
permitidos = numeros2;
break;
case 'car':
permitidos = caracteres;
break;
case 'num_car':
permitidos = numeros_caracteres;
break;
}
// Obtener la tecla pulsada
var evento = elEvento || window.event;
var codigoCaracter = evento.charCode || evento.keyCode;
var caracter = String.fromCharCode(codigoCaracter);
// Comprobar si la tecla pulsada se encuentra en los caracteres permitidos
return permitidos.indexOf(caracter) != -1;
}

</script>

<!-- Latest compiled and minified CSS -->
        <link rel="stylesheet" href="bootstrap/css/bootstrap.min.css">

        <!-- Optional theme -->
        <link rel="stylesheet" href="bootstrap/css/bootstrap-theme.min.css">

        <!-- Latest compiled and minified JavaScript -->
        <script src="bootstrap/js/bootstrap.min.js"></script>
        
</head>
<body>
<div id="cabecera">
<div id="menu">
<ul class="jd_menu jd_menu_slate">
<? echo $ServiciosHTML->menu(); ?>	
</ul>
</div>
</div>
<div class="content">

<div align="center">

<div class="panel panel-primary" style="width:665px;" align="left">
		<div class="panel-heading">
			<h3 class="panel-title"><span class="glyphicon glyphicon glyphicon-list"></span> Lista de Clientes.</h3>
		</div>
			<div class="panel-body">
            
<form name="form" method="GET">
<table width="790" class="table table-striped">
<caption>Clientes</caption>
<thead>
<tr>
<th>IdCliente</th>
<th>Cliente</th>
<th>E-Mail</th>
<th>Modificar</th>
<th>Eliminar</th>
</tr>
</thead>
<tbody>

<?
$cant=0;
while ($row = mysql_fetch_array($datos))
{
$cant++;
?>
<tr>
<td><? echo $row[0]; ?></td>
<td><? echo $row[1]; ?></td>
<td><? echo $row[2]; ?></td>
<td><a href="cModificar.php?idProd=<? echo $row[0]; ?>">Modificar</a> <span class="glyphicon glyphicon glyphicon-pencil"></span></td>
<td><a href="cEliminar.php?idProd=<? echo $row[0]; ?>">Eliminar</a> <span class="glyphicon glyphicon glyphicon-remove"></span></td>
</tr>
<?

}


?>


</tbody>

</table>
</form>

</div>
</div>
</div>
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
</div>
<footer>Aggiorno Deco - Copyright 2011. Diseño y Programación Web: Saupurein Marcos, Tel:(0221)156184415</footer>
</body>
</html>
